/*package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleCommentDto;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.comment.dtos.CommentConfigDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.WmCommentDto;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.WmStatisticsNewsPageDto;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

import java.util.Date;

*//**
 * @author 陈辉
 * @data 2023 17:45
 *//*
@Component
public class IArticleClientImpl implements IArticleClient {
    @Override
    public ResponseResult saveOrUpdate(ArticleDto articleDto) {
        return ResponseResult.errorResult(501, "服务器正忙...");
    }

    @Override
    public PageResponseResult findAllComment(WmCommentDto dto) {
        PageResponseResult responseResult = new PageResponseResult(dto.getPage(), dto.getSize(), 0);
        responseResult.setCode(501);
        responseResult.setErrorMessage("获取数据失败");
        return responseResult;
    }


    @Override
    public ResponseResult updateCommentStatus(CommentConfigDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }


    @Override
    public PageResponseResult findNewsComments(ArticleCommentDto dto) {
        PageResponseResult responseResult = new PageResponseResult(dto.getPage(),dto.getSize(),0);
        responseResult.setCode(501);
        responseResult.setErrorMessage("获取数据失败");
        return responseResult;
    }

    @Override
    public ResponseResult findArticleConfigByArticleId(Long articleId) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public ResponseResult queryLikesAndConllections(Integer id, Date beginTime, Date endTime) {
        return null;
    }

    @Override
    public PageResponseResult newPage(WmStatisticsNewsPageDto dto) {
        return null;
    }
}*/
//package com.heima.feign.article.fallback;
//
//import com.heima.feign.article.IArticleClient;
//import com.heima.model.article.dtos.ArticleCommentDto;
//import com.heima.model.article.dtos.ArticleDto;
//import com.heima.model.comment.dtos.CommentConfigDto;
//import com.heima.model.common.dtos.PageResponseResult;
//import com.heima.model.common.dtos.PageResponseResult;
//import com.heima.model.common.dtos.ResponseResult;
//import com.heima.model.common.enums.AppHttpCodeEnum;
//import com.heima.model.wemedia.dtos.WmCommentDto;
//import com.heima.model.common.enums.AppHttpCodeEnum;
//import com.heima.model.wemedia.dtos.WmStatisticsNewsPageDto;
//import com.heima.model.common.enums.AppHttpCodeEnum;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//
///**
// * @author 陈辉
// * @data 2023 17:45
// */
//@Component
//public class IArticleClientImpl implements IArticleClient {
//    @Override
//    public ResponseResult saveOrUpdate(ArticleDto articleDto) {
//        return ResponseResult.errorResult(501,"服务器正忙...");
//    }
//
//    @Override
//    public PageResponseResult findAllComment(WmCommentDto dto) {
//        PageResponseResult responseResult = new PageResponseResult(dto.getPage(),dto.getSize(),0);
//        responseResult.setCode(501);
//        responseResult.setErrorMessage("获取数据失败");
//        return responseResult;
//    }
//
//    /**
//     * 修改app配置
//     * @param dto
//     * @return
//     */
//    @Override
//    public ResponseResult updateCommentStatus(CommentConfigDto dto) {
//        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
//    }
//
//    @Override
//    public PageResponseResult findNewsComments(ArticleCommentDto dto) {
//        PageResponseResult responseResult = new PageResponseResult(dto.getPage(),dto.getSize(),0);
//        responseResult.setCode(501);
//        responseResult.setErrorMessage("获取数据失败");
//        return responseResult;
//    }
//
//    @Override
//    public ResponseResult findArticleConfigByArticleId(Long articleId) {
//        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
//    }
//
//    @Override
//    public ResponseResult queryLikesAndConllections(Integer id, Date beginTime, Date endTime) {
//        return null;
//    }
//
//    @Override
//    public PageResponseResult newPage(WmStatisticsNewsPageDto dto) {
//        return null;
//    }
//}
